<?php

class Alias {

	static function staticFunction( $classname, $function ) {
		static $valid = '/^[a-zA-Z_][0-9a-zA-Z_]+$/';
		if( preg_match( $valid, $classname ) && preg_match( $valid, $function ) )
		return create_function('', "\$args = func_get_args(); return call_user_func_array( array('$classname', '$function'), \$args);");
		else trigger_error('unable to import function');
	}
	
}